import 'package:base/base_lib.dart';
import 'package:get/get.dart';

import 'splash/splash_binding.dart';
import 'splash/splash_view.dart';
import 'tab/tab_binding.dart';
import 'tab/tab_page.dart';

class AppRouter extends IRouterProvider {
  static const SPLASH = '/splash';
  static const TAB = '/tab';

  static void startTab() {
    Get.offAllNamed(TAB);
  }

  @override
  List<GetPage> initRouter() {
    return [
      GetPage(
        name: SPLASH,
        page: () => SplashPage(),
        binding: SplashBinding(),
      ),
      GetPage(
        name: TAB,
        page: () => TabPage(),
        binding: TabBinding(),
      )
    ];
  }
}
